import request from '@/http/request_admin'

export function getMessageList(data: any) {
  return request({
    url: `/business/Message/page`,
    method: 'get',
    params: data
  });
}

export function addMessageList(data: any) {
  return request({
    url: `/business/Message/add`,
    method: 'post',
    data: data
  });
}

export function updateMessage(data: any) {
  return request({
    url: `/business/Message/update`,
    method: 'put',
    data: data
  });
}

export function getMessageDetail(id: any) {
  return request({
    url: `/business/Message/getOne/${id}`,
    method: 'get'
  });
}

export function deleteMessage(id: any) {
  return request({
    url: `/business/Message/delete/${id}`,
    method: 'delete'
  });
}